import java.util.Scanner;

public class Main {




    // 第一题失败的案例
    public static void main(String[] args) {

        Scanner scanner = new Scanner(System.in);
        String str = scanner.nextLine();
        char[] c = str.toCharArray();

        int[] total = new int[c.length];
        int counttotal = 0;//每个数字字符串长度

        int[] star = new int[c.length];
        int countstar=  0;//每个数字字符串下标

        int i =0;
        int j =0;
        for ( i = 0;i<c.length;i++) {

            if(c[i] >= '1' &&c[i] <='9') {
                star[countstar] = i;
                j = i;
                while ( i < c.length&&j<c.length &&c[i] >= '1' &&c[i] <='9') {
                    j++;

                }
                total[counttotal] = j - i;
                countstar++;
                counttotal++;
            }

        }
        for (int k = 0; k < countstar; k++) {
            System.out.println(star[k]);
        }

    }




    /*public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String str = scanner.nextLine();
        char[] c = str.toCharArray();
        char[] anser = new char[c.length];//储存数字字符
        int j=0;//数字字符下标
        int[] countmax = new int[c.length];//数字字符串起始坐标
        int countmax1 = 0;
        int[] max = new int[c.length];//记录每个数字字符长度
        int countma = 0;

        for (int i = 0; i < c.length; i++) {
            if(c[i] >= '1' &&c[i] <='9'){

                countmax[countmax1] = i;//每个字符串起始下标
                while (c[i] >= '1' &&c[i] <='9') {

                    anser[j] =c[i];
                    j++;
                    i++;


                }

            }

        }


    }*/
 /*   public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String str = scanner.nextLine();
        char[] c = str.toCharArray();
        int len = c.length;
        int j= 0;
        int[] a = new int[255];
        int[] b = new int[255];
        int coutb = 0;
        for (int i = 0; i < len; i++) {
            if(c[i] >= '1' &&c[i] <='9') {
                a[j] = i;
                j++;
                while (c[i] >= '1' &&c[i] <'9') {
                    i++;
                }
                b[coutb] = i;
                coutb++;
            }
        }
        int max = a[0];
        coutb = 0;
        for (int i = 0; i < coutb; i++) {

            if(a[i] < a[i+1]) {
                max = a[i+1];
                coutb += i;
            }
        }
        char[] ne = new char[255];
        int cee= 0;
        for (int i = max; i < coutb; i++) {
            ne[cee] = c[i];
            cee++;
        }
        String sccs = new String(ne);
        System.out.println(sccs);

    }*/
}